package generator;


public class GeneratorCitStarter {
	
	
	/**
	
	// FOOOSH Properties
	private static String SOURCE_FOLDER = "C:/_data/workspaces/cit_search/persistence/src/";
	private static String PACKAGE = "database/object/";
	private static String DRIVER_CLASS = "com.mysql.jdbc.Driver";
	private static String CONNECTION_STRING = "jdbc:mysql://localhost/";
	private static String SCHEMA = "fooosh";
	private static String USER = "root";
	private static String PASSWORD = null;
	**/
	
	/**
	// CIT Properties
	private static String SOURCE_FOLDER = "C:/_data/workspaces/cit_search/persistence/src/";
	private static String PACKAGE = "database/object/";
	private static String DRIVER_CLASS = "oracle.jdbc.driver.OracleDriver";
	private static String CONNECTION_STRING = "jdbc:oracle:thin:@q4de3qsy266.t2.sl-si.com:1522:cite01";
	private static String SCHEMA = "cit";
	private static String USER = "cit";
	private static String PASSWORD = "cat";
	**/
	
	/**
	// AnalyseDB Properties
	private static String SOURCE_FOLDER = "C:/_data/workspaces/cit_search/generator/src/";
	private static String PACKAGE = "analyse.database.object";
	private static String PACKAGE_FOLDER = PACKAGE.replace(".", "/") + "/";
	private static String DRIVER_CLASS = "com.mysql.jdbc.Driver";
	private static String CONNECTION_STRING = "jdbc:mysql://localhost/";
	private static String SCHEMA = "db_analyse";
	private static String USER = "root";
	private static String PASSWORD = null;
	**/

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		PersistenceContext context = new PersistenceContext();
		context.setSourceFolder("C:/_data/workspaces/cit_search/CIT_SEARCH_WEB_GUI/src/");
		context.setPackageName("com.tsi.cit.search.persistence.f3db");
		context.setDriverClass("oracle.jdbc.driver.OracleDriver");
		context.setConnectionUrl("jdbc:oracle:thin:@q4de3qsy266.t2.sl-si.com:1522:cite01");
		context.setSchema("cit");
		context.setUser("cit");
		context.setPassword("cat");
		context.setDbAlias("f3db");
		
		context.addTableToWhitelist("AUFPOS");
		context.addTableToWhitelist("AUFTRAG");
		context.addTableToWhitelist("AUFPOS_INFO_HIST");
		context.addTableToWhitelist("AUFPOS_SCHLUESSEL");
		context.addTableToWhitelist("AUFPOS_MERKMAL");
		context.addTableToWhitelist("AUFTRAG_INFO_HIST");
		context.addTableToWhitelist("AUFTRAG_MERKMAL");
		context.addTableToWhitelist("AUFTRAG_SCHLUESSEL");
		context.addTableToWhitelist("EXCEPTION");
		context.addTableToWhitelist("EXCEPTION_URSPRUNG");
		context.addTableToWhitelist("EXCEPTION_INFO_HIST");
		context.addTableToWhitelist("SD_SYSTEM");
		context.addTableToWhitelist("SD_MERKMAL");
		context.addTableToWhitelist("SD_PRODUKT");
		context.addTableToWhitelist("SD_GESCHAEFTSFALL");
		context.addTableToWhitelist("SD_MELDUNG_PATTERN");
		context.addTableToWhitelist("SYS_SCHNITTSTELLE");
		context.addTableToWhitelist("AUFPOS_FLEXPROD_ATTRIBUT");
		context.addTableToWhitelist("SYS_JOB_REGISTRIERUNG");
		context.addTableToWhitelist("REF_MP_KAT_ID_FOLGE");
		context.addTableToWhitelist("REF_MELDUNG_PATTERN_ATTRIBUT");
		context.addTableToWhitelist("SD_FOLGE_GRUPPE");
		context.addTableToWhitelist("EXCEPTION");
		context.addTableToWhitelist("SD_EXCEPTION");
		
		context.addTableToBlacklist("AUFPOS_BS");
		context.addTableToBlacklist("AUFTRAG_BS");
		context.addTableToBlacklist("AUFTRAG_BS_HISTORIE");
		context.addTableToBlacklist("SD_EXC_SD_MP_MAPPING");
		context.addTableToBlacklist("SD_MP_KAT_ID");
		context.addTableToBlacklist("REF_FOLGE_GRUPPE_ZUO");
		
		Persistence generator = new Persistence(context);
		generator.start();

	}

}
